﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BbsbWebService.Classes.Controllers;
using System.Runtime.Serialization;

namespace BbsbWebService.Classes.Plugins
{
    [DataContract]
    [BbsbWsPluginItem]
    public abstract class PluginItem<T> : ControllableItem where T : IController
    {
        public override Controllers.IController Controller
        {
            get
            {
                return AllControllers.GetController<T>();
            }
        }

        public override Type ControllerType
        {
            get { return typeof(T); }
        }
    }
}
